package com.tanhua.dubbo.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.model.domain.Voice;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface VoiceMapper extends BaseMapper<Voice> {
    @Select("select * from tb_voice where created = date(now()) and user_id = #{userId}")
    List<Voice> findCount(Long userId);
    @Select("select * from tb_voice where recived = date(now()) and receive_id = #{userId}")
    List<Voice> findList(Long userId);
}
